package cn.com.shopec.erp.multiChannel.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 多渠道订单收货人实体类
 * @author Terry
 *
 */
@Entity
@Table(name = "tbl_channel_order_receiver")
public class ChannelOrderReceiver {	
	private String id;							//多渠道订单收货人编号
	private String channelOrderId;				//多渠道订单编号
	private String fullname;					//姓名
	private String telephone;					//固定电话
	private String mobile;						//手机
	private String province;					//省
	private String city;						//市
	private String county;						//区
	private String fullAddress;					//详细地址

	public ChannelOrderReceiver() {
	}

	public ChannelOrderReceiver(String id) {
		this.id = id;
	}

	public ChannelOrderReceiver(String id, String channelOrderId, String fullname,
			String telephone, String mobile, String province, String city, String county, String fullAddress) {
		this.id = id;
		this.channelOrderId = channelOrderId;
		this.fullname = fullname;
		this.telephone = telephone;
		this.mobile = mobile;
		this.province = province;
		this.city = city;
		this.county = county;
		this.fullAddress = fullAddress;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@GeneratedValue(generator = "generator")
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "channel_order_id", length = 30)
	public String getChannelOrderId() {
		return this.channelOrderId;
	}

	public void setChannelOrderId(String channelOrderId) {
		this.channelOrderId = channelOrderId;
	}

	@Column(name = "fullname", length = 30)
	public String getFullname() {
		return this.fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	@Column(name = "telephone", length = 30)
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "mobile", length = 30)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "province", length = 30)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "city", length = 30)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "county", length = 30)
	public String getCounty() {
		return this.county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	@Column(name = "full_address", length = 200)
	public String getFullAddress() {
		return this.fullAddress;
	}

	public void setFullAddress(String fullAddress) {
		this.fullAddress = fullAddress;
	}
}
